import os


class PathConfig:
    def __init__(self):
        self.base_dir = os.path.dirname(os.path.abspath(__file__))
        self.root_dir = os.path.abspath(os.path.join(self.base_dir, '..'))
        # 目录
        self.testcase_dir = os.path.join(self.root_dir, "testcase")
        self.resource_dir = os.path.join(self.root_dir, "resource")
        self.auth_dir = os.path.join(self.resource_dir, "auth")
        self.allure_report_dir = os.path.join(self.resource_dir, "allure_report")
        self.allure_result_dir = os.path.join(self.resource_dir, "allure_result")
        self.image_dir = os.path.join(self.resource_dir, "image")
        self.trace_dir = os.path.join(self.resource_dir, "image")
        self.file_dir = os.path.join(self.resource_dir, "file")
        self.log_dir = os.path.join(self.resource_dir, "log")

        # 文件
        self.log_file = os.path.join(self.log_dir, "log_file.log")
        self.po_adjust_file = os.path.join(self.file_dir, "po_adjust.xlsx")
        self.curve_detail_data_file = os.path.join(self.file_dir, "curve_detail_data.xlsx")
        self.adjust_order_file = os.path.join(self.file_dir, "adjust_order.xlsx")
        self.policy_fund_pool_file = os.path.join(self.file_dir, "policy_fund_pool.xlsx")
        self.account_holding_file = os.path.join(self.file_dir, "account_holding.xlsx")
        self.account_adjust_order_file = os.path.join(self.file_dir, "account_adjust_order.xlsx")
        self.po_batch_adjust_file = os.path.join(self.file_dir, "po_batch_adjust.xlsx")
        self.cma_import_file = os.path.join(self.file_dir, "cma_import.xlsx")


path_config = PathConfig()
